<?php
namespace Tbf\Bundle\AlipayBundle\Controller;
use Tbf\Bundle\TbfBundle\Controller\TbfController;

/**
 * 回调controller
 */
class CallbackController extends TbfController{
    function createDirectPayByUserPage(){
        return $this->get('tbf_alipay.create_direct_pay_by_user')->onPageCallback($this->getRequest());
    }
    function createDirectPayByUserApi(){
        return $this->get('tbf_alipay.create_direct_pay_by_user')->onApiCallback($this->getRequest());
    }
    function createTradeByUserPage(){
        return $this->get('tbf_alipay.create_trade_by_user')->onPageCallback($this->getRequest());
    }
    function createTradeByUserApi(){
        return $this->get('tbf_alipay.create_trade_by_user')->onApiCallback($this->getRequest());
    }
    function createPartnerTradeByBuyerPage(){
        return $this->get('tbf_alipay.create_partner_trade_by_buyer')->onPageCallback($this->getRequest());
    }
    function createPartnerTradeByBuyerApi(){
        return $this->get('tbf_alipay.create_partner_trade_by_buyer')->onApiCallback($this->getRequest());
    }
}